package webmail.entidade;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@SessionScoped
@ManagedBean
public class CarBean {
private List<Car> cars = new ArrayList<Car>();;

public CarBean() {
	cars.add(new Car("myModel",2005,"ManufacturerX","blue"));
	cars.add(new Car("myModel",2005,"ManufacturerX","blue"));
	cars.add(new Car("myModel",2005,"ManufacturerX","blue"));
}

public void CarListController() {

cars.add(new Car("myModel",2005,"ManufacturerX","blue"));
//add more cars
}
public List<Car> getCars() {
return cars;
}
}